<%@include file="../header.jsp"%>
<!-- start content-outer -->
<div id="content-outer"><!-- start content -->
<div id="content">
<div id="page-heading">
<h1>Berita Acara : ${jenisSidang} - ${idUser}</h1>
</div>
<table id="content-table" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" alt="" height="300" width="20" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" alt="" height="300" width="20" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td><!-- start content-table-inner -->
<div id="content-table-inner">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<!-- start step-holder -->

<!-- end step-holder -->
<!-- start id-form -->
<c:if test="${jenisSidang == 'SIDANG PROPOSAL'}">
<table id="id-form" border="0" cellpadding="0" cellspacing="0">
<form name="BeritaAcaraProposal" action="SidangTAController?page=rekamBeritaAcara" onSubmit="return validateBeritaAcaraProposal()" method="post">
<tbody>
<tr>
   <input type="hidden" name="tglSidang" value="${detailBeritaAcara.tglSidang}"></input>
   <th valign="top">Pembimbing 1</th>
   <td valign="middle" align="center">:</td>
   <c:forEach items="${listPembimbing1}" var="listPembimbing1" >
   <c:if test="${(listPembimbing1.user.idUser == detailDataTA.pembimbing1)}">
       <td>${listPembimbing1.user.namaUser}</td>
   </c:if>
   </c:forEach>
   <td width="315" ></td>
   <th valign="top">Penguji 1 </th>
    <td valign="middle" align="center">:</td>
    <c:forEach items="${listPenguji1}" var="listPenguji1">
    <c:if test="${(listPenguji1.user.idUser == detailBeritaAcara.penguji1)}">
    <td>${listPenguji1.user.namaUser}</td>
    </c:if>
    </c:forEach>
    <td width="315" ></td>
</tr>
<tr>
   <th valign="top">Pembimbing 2</th>
   <td valign="middle" align="center">:</td>
   <td>
   <c:if test="${(detailDataTA.pembimbing2 != '0')}">
    <c:forEach items="${listPembimbing2}" var="listPembimbing2" >
    <c:if test="${(listPembimbing2.user.idUser == detailDataTA.pembimbing2)}">
       ${listPembimbing2.user.namaUser}
    </c:if>
    </c:forEach>
    </c:if>
    <c:if test="${(detailDataTA.pembimbing2 != null)}">${detailDataTA.pembimbingLuar}</c:if>
    <c:if test="${(detailDataTA.pembimbing2 == '0' && detailDataTA.pembimbingLuar == null)}"> - </c:if>
   </td>
   <td width="315" ></td>
   <th valign="top">Penguji 2 </th>
    <td valign="middle" align="center">:</td>
    <c:forEach items="${listPenguji2}" var="listPenguji2">
    <c:if test="${(listPenguji2.user.idUser == detailBeritaAcara.penguji2)}">
    <td>${listPenguji2.user.namaUser}</td>
    </c:if>
    </c:forEach>
    <td width="315" ></td>
</tr>
<tr>
    <th valign="middle">Judul</th>
    <td valign="middle" align="center">:</td>
    <td>${detailDataTA.judul}</td>
    <td width="315" ></td>
    <th valign="middle">Status Sidang</th>
   <td valign="middle" align="center">:</td>
   <td>
        <select name="statusSidang" class="styledselect_form_1">
            <option value="0">-- Status Proposal --</option>
        <c:forEach items="${listStatusProposal}" var="listStatusProposal">
            <option value="${listStatusProposal.statusProposal}"
                    <c:if test="${(listStatusProposal.statusProposal == detailBeritaAcara.statusSidang)}">
                        selected="selected"
                    </c:if>
            >${listStatusProposal.statusProposal}</option>
        </c:forEach>
        </select>
   </td>
   <td width="315" ></td>
</tr>
<tr>
    <th width="130" valign="top">Tanggal</th>
    <td width="29" valign="middle" align="center">:</td>
    <td width="275">
        <input type="hidden" name="idSidang" value="${detailBeritaAcara.idSidang}"></input>
        <input type="hidden" name="idUser" value="${idUser}"></input>
        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
        ${detailBeritaAcara.tglSidang}
    </td>
    
    <td width="315" ></td>
</tr>           
<tr>
    <th valign="top">Waktu</th>
    <td valign="middle" align="center">:</td>
    <td>${detailBeritaAcara.wktSidang}</td>
    <td width="315" ></td>
    <td><font color="red">* = Wajib diisi saat sidang diterima</font></td>
</tr>
<tr>
    <th valign="top">Tempat</th>
    <td valign="middle" align="center">:</td>
    <td>${detailBeritaAcara.tempatSidang}</td>
    <td width="315" ></td>
</tr>
<tr>
    
</tr>
<tr>
    
</tr>
<tr>
<th>&nbsp;</th>
<td valign="top">&nbsp;</td>
<td></td>
<td width="315" ></td>
<td valign="top"> <input value="" class="form-rekam" type="submit" /></td> 
<td></td>
<td width="315" ></td>
</tr>
</tbody>
</form>
</table>
</c:if>

<c:if test="${jenisSidang == 'SIDANG FINAL'}">
<script>
function validateBeritaAcaraFinal(){
if(document.BeritaAcaraFinal.statusSidang.value == "LULUS" || document.BeritaAcaraFinal.statusSidang.value == "LULUS DENGAN REVISI"){
  
  if (document.BeritaAcaraFinal.nilaiPenguji1.value == ""){
  alert("Nilai penguji 1 harus diisi");
  document.BeritaAcaraFinal.nilaiPenguji1.focus();
  return false;
  }
  else if (document.BeritaAcaraFinal.nilaiPenguji2.value == ""){
  alert("Nilai penguji 2 harus diisi");
  document.BeritaAcaraFinal.nilaiPenguji2.focus();
  return false;
  }
  else if(document.BeritaAcaraFinal.nilaiPembimbing1.value == ""){
  alert("Nilai pembimbing 1 harus diisi");
  document.BeritaAcaraFinal.nilaiPembimbing1.focus();
  return false;
  }
  else if (document.BeritaAcaraFinal.nilaiPembimbing2.value == ""){
  alert("Nilai pembimbing 2 harus diisi");
  document.BeritaAcaraFinal.nilaiPembimbing2.focus();
  return false;
  }
}else{
    if (document.BeritaAcaraFinal.nilaiPenguji1.value != ""){
    alert("Status belum diterima, nilai penguji 1 tidak dapat diisi");
    document.BeritaAcaraFinal.nilaiPenguji1.focus();
    return false;
    }
    else if (document.BeritaAcaraFinal.nilaiPenguji2.value != ""){
    alert("Status belum diterima, nilai penguji 2 tidak dapat diisi");
    document.BeritaAcaraFinal.nilaiPenguji2.focus();
    return false;
    }
    else if(document.BeritaAcaraFinal.nilaiPembimbing1.value != ""){
    alert("Status belum diterima, nilai pembimbing 1 tidak dapat diisi");
    document.BeritaAcaraFinal.nilaiPembimbing1.focus();
    return false;
    }
    else if (document.BeritaAcaraFinal.nilaiPembimbing2.value != ""){
    alert("Status belum diterima, nilai pembimbing 2 tidak dapat diisi");
    document.BeritaAcaraFinal.nilaiPembimbing2.focus();
    return false;
    }
  }
}
</script>
<table id="id-form" border="0" cellpadding="0" cellspacing="0">
<form name="BeritaAcaraFinal" action="SidangTAController?page=rekamBeritaAcara" onSubmit="return validateBeritaAcaraFinal()" method="post">
<tbody>
<tr>
   <input type="hidden" name="tglSidang" value="${detailBeritaAcara.tglSidang}"></input>
   <th valign="top">Pembimbing 1</th>
   <td valign="middle" align="center">:</td>
   <c:forEach items="${listPembimbing1}" var="listPembimbing1" >
   <c:if test="${(listPembimbing1.user.idUser == detailDataTA.pembimbing1)}">
       <td>${listPembimbing1.user.namaUser}</td>
   </c:if>
   </c:forEach>
   <td width="315" ></td>
   <th valign="top">Status Sidang</th>
   <td valign="middle" align="center" width="20">:</td>
   <td>
        <select name="statusSidang" class="styledselect_form_1">
            <option value="0">-- Status Final --</option>
        <c:forEach items="${listStatusFinal}" var="listStatusFinal">
            <option value="${listStatusFinal.statusFinal}"
                    <c:if test="${(listStatusFinal.statusFinal == detailBeritaAcara.statusSidang)}">
                        selected="selected"
                    </c:if>
            >${listStatusFinal.statusFinal}</option>
        </c:forEach>
        </select>
    </td> 
   <td width="315" ></td>
</tr>
<tr>
   <th valign="top">Pembimbing 2</th>
   <td valign="middle" align="center">:</td>
   <td>
   <c:if test="${(detailDataTA.pembimbing2 != '0')}">
    <c:forEach items="${listPembimbing2}" var="listPembimbing2" >
    <c:if test="${(listPembimbing2.user.idUser == detailDataTA.pembimbing2)}">
       ${listPembimbing2.user.namaUser}
    </c:if>
    </c:forEach>
    </c:if>
    <c:if test="${(detailDataTA.pembimbing2 != null)}">${detailDataTA.pembimbingLuar}</c:if>
    <c:if test="${(detailDataTA.pembimbing2 == '0' && detailDataTA.pembimbingLuar == null)}"> - </c:if>
   </td>
   <td width="315" ></td>
    <th valign="middle">Nilai Penguji 1 <font color="red">*</font></th>
    <td valign="middle" align="center">:</td>
    <td>
        <c:if test="${(detailBeritaAcara.statusSidang != 'LULUS' && detailBeritaAcara.statusSidang != 'LULUS DENGAN REVISI')}">
        <input class="inp-form" type="text" name="nilaiPenguji1" value=""></input>
        </c:if>
        <c:if test="${(detailBeritaAcara.statusSidang == 'LULUS' || detailBeritaAcara.statusSidang == 'LULUS DENGAN REVISI')}">
        <input class="inp-form" type="text" name="nilaiPenguji1" value="${detailBeritaAcara.nilaiPenguji1}"></input>   
        </c:if> 
    </td>
   <td width="315" ></td>
</tr>
<tr>
    <th valign="middle">Judul</th>
    <td valign="middle" align="center">:</td>
    <td>${detailDataTA.judul}</td>
    <td width="315" ></td>
    <th valign="top">Nilai Penguji 2 <font color="red">*</font></th>
    <td valign="middle" align="center">:</td>
    <c:if test="${detailBeritaAcara.penguji2 == 0}">
        <td><input disabled class="inp-form" type="text" name="penguji2ksg"></input></td>    
    </c:if>        
    <c:if test="${detailBeritaAcara.penguji2 != 0}">
        <c:if test="${(detailBeritaAcara.statusSidang != 'LULUS' && detailBeritaAcara.statusSidang != 'LULUS DENGAN REVISI')}">
            <td><input class="inp-form" type="text" name="nilaiPenguji2" value=""></input></td> 
        </c:if>
        <c:if test="${(detailBeritaAcara.statusSidang == 'LULUS' || detailBeritaAcara.statusSidang == 'LULUS DENGAN REVISI')}">
            <td><input class="inp-form" type="text" name="nilaiPenguji2" value="${detailBeritaAcara.nilaiPenguji2}"></input></td>   
        </c:if>
        
    </c:if>
    <td width="315" ></td>
</tr>
<tr>
    <th width="130" valign="top">Tanggal</th>
    <td width="29" valign="middle" align="center">:</td>
    <td width="275">
        <input type="hidden" name="idSidang" value="${detailBeritaAcara.idSidang}"></input>
        <input type="hidden" name="idUser" value="${idUser}"></input>
        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
        ${detailBeritaAcara.tglSidang}
    </td>
    <td width="315" ></td>
    <th valign="top">Nilai Pembimbing 1 <font color="red">*</font></th>
    <td valign="middle" align="center">:</td>
    <td>
        <c:if test="${(detailBeritaAcara.statusSidang != 'LULUS' && detailBeritaAcara.statusSidang != 'LULUS DENGAN REVISI')}">
        <input class="inp-form" type="text" name="nilaiPembimbing1" value=""></input> 
        </c:if>
        <c:if test="${(detailBeritaAcara.statusSidang == 'LULUS' || detailBeritaAcara.statusSidang == 'LULUS DENGAN REVISI')}">
        <input class="inp-form" type="text" name="nilaiPembimbing1" value="${detailBeritaAcara.nilaiPembimbing1}"></input>   
        </c:if>
        
    </td>
    <td width="315" ></td>
</tr>           
<tr>
    <th valign="top">Waktu</th>
    <td valign="middle" align="center">:</td>
    <td>${detailBeritaAcara.wktSidang}</td>
    <td width="315" ></td>
    <th valign="top">Nilai Pembimbing 2 <font color="red">*</font></th>
    <td valign="middle" align="center">:</td>
    <c:if test="${detailDataTA.pembimbing2 == 0}">
            <td><input disabled class="inp-form" type="text" name="pembimbing2ksg"></input></td>
    </c:if>
    <c:if test="${detailDataTA.pembimbing2 != 0}">
            <c:if test="${(detailBeritaAcara.statusSidang != 'LULUS' && detailBeritaAcara.statusSidang != 'LULUS DENGAN REVISI')}">
            <td><input class="inp-form" type="text" name="nilaiPembimbing2" value=""></input></td>
            </c:if>
            <c:if test="${(detailBeritaAcara.statusSidang == 'LULUS' || detailBeritaAcara.statusSidang == 'LULUS DENGAN REVISI')}">
            <td><input class="inp-form" type="text" name="nilaiPembimbing2" value="${detailBeritaAcara.nilaiPembimbing2}"></input></td>   
            </c:if>
            
    </c:if>
    <td width="315" ></td>
</tr>
<tr>
    <th valign="top">Tempat</th>
    <td valign="middle" align="center">:</td>
    <td>${detailBeritaAcara.tempatSidang}</td>
    
    <td width="315" ></td>
</tr>
<tr>
    <th valign="top">Penguji 1 <font color="red">*</font></th>
    <td valign="middle" align="center">:</td>
    <c:forEach items="${listPenguji1}" var="listPenguji1">
    <c:if test="${(listPenguji1.user.idUser == detailBeritaAcara.penguji1)}">
    <td>${listPenguji1.user.namaUser}</td>
    </c:if>
    </c:forEach>
    <td width="315" ></td>
    <td><font color="red">* = Wajib diisi saat sidang diterima</font></td>   
</tr>
<tr>
    <th valign="top">Penguji 2 </th>
    <td valign="middle" align="center">:</td>
    <c:forEach items="${listPenguji2}" var="listPenguji2">
    <c:if test="${(listPenguji2.user.idUser == detailBeritaAcara.penguji2)}">
    <td>${listPenguji2.user.namaUser}</td>
    </c:if>
    </c:forEach>
    <td width=""315></td>
    
</tr>
<tr>
<th>&nbsp;</th>
<td valign="top">&nbsp;</td>
<td></td>
<td width="315" ></td>
<td valign="top"> <input value="" class="form-rekam" type="submit" /></td> 
<td></td>
<td width="315" ></td>
</tr>
</tbody>
</form>
</table>
</c:if>
<!-- end id-form --> </td>
<td><!-- start related-activities --><!-- end related-activities --></td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" alt="blank" height="1" width="695" /></td>
<td></td>
</tr>
</tbody>
</table>
<div class="clear"></div>
</div>
<!-- end content-table-inner -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</tbody>
</table>
<div class="clear">&nbsp;</div>
</div>
<!-- end content -->
<div class="clear">&nbsp;</div>
</div>
<!-- end content-outer -->
<div class="clear">&nbsp;</div>
<!-- start footer -->
<div id="footer"><!-- start footer-left -->
<div id="footer-left"> Admin Skin © Copyright Internet
Dreams Ltd. <a href="">www.netdreams.co.uk</a>. All
rights reserved.</div>
<!-- end footer-left -->
<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body></html>